package com.dj.ms.configure;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * <br>
 * <p>事件总线配置</p>
 *
 * <br>
 *
 * @author ZJG
 * @version 1.0
 * @date 2021/7/27 下午2:54
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "dj.ms.event")
public class EventBusConfiguration {

    /**
     * com.dj.ms.event.enabled
     */
    private boolean enabled;

    /**
     * com.dj.ms.event.retry-enabled
     */
    private boolean retryEnabled = true;

    /**
     * EventRetryTaskScheduled max retry times
     * com.dj.ms.event.retry-times
     */
    private Integer retryTimes = 10;

}
